package com.tan.core.auth;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Tan
 * @description
 * @date 2025/1/27
 */
public class AuthUtil {

    /**
     * 获取当前登录用户
     */
    public static AuthCurrentUser getCurrentUser() {
        AuthCurrentUser authUser = AuthCurrentUser.builder().userId(10001L).userName("admin_tan").build();
        List<String> roles = new ArrayList<>();
        roles.add("SUPER-ADMIN");
        authUser.setRoles(roles);
        return authUser;
    }
}
